cmake_minimum_required(VERSION 2.8)

project(Everest_Test_ODBC_RAW)

SET(CMAKE_SOURCE_DIR .)
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb -fpermissive")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O2 -Wall -fpermissive")
SET(CMAKE_BUILD_TYPE DEBUG)

add_executable(test_connection test_connection.cpp)
target_link_libraries(test_connection cppunit)
target_link_libraries(test_connection odbc)

add_executable(test_odbc_param test_odbc_param.cpp)
target_link_libraries(test_odbc_param cppunit odbc)

enable_testing()
add_test(NAME test_connection  COMMAND test_connection)
add_test(NAME test_odbc_param  COMMAND test_odbc_param)
